package com.easy.restful.girls.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import cn.afterturn.easypoi.excel.annotation.Excel;

/**
 * 测试
 *
 * @author 系统管理员
 * @date 2021-05-13
 */
@TableName("girls_info")
public class GirlsInfo extends Model<GirlsInfo> {

    @TableId(value = "user_id")
    @Excel(name = "NO", orderNum = "0")    
private Integer userId;
    @NotBlank(message = "用户名不能为空")    
@Excel(name = "用户名", orderNum = "1")    
private String userName;
    @NotBlank(message = "密码不能为空")    
@Excel(name = "密码", orderNum = "2")    
private String userPassword;
    //

    @Override
    protected Serializable pkVal() {
        return this.userId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }
}
